// 下面是公共的样式
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 12px;
  //font-family: Microsoft YaHei, Helvetica, Arial, sans-serif;
  font-family: DejaVu scan Mono, Helvetica, Arial, sans-serif;
  color: #333;
  font-size: 14px;
}
ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}
#app {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.vue-slideout-fullscreen .vue-slideout-content {
  padding: 0;
}

.d-flex {
  display: flex;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-bold {
  font-weight: bold;
}

.table-fixed {
  table-layout: fixed;
}

.vertical-middle {
  vertical-align: middle;
}

.auto-wrap {
  word-break: break-all;
  white-space: pre-line;
  word-wrap: break-word;
}

.auto-ellipsis {
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-tabs {
  background: none;
}

.page-layout,
.x-tabs-toolbar,
.layout-top {
  .search {
    > * {
      margin-left: 5px;
    }
  }
}

.page-layout {
  background: none;
}

.el-tree {
  background: none;
}

.select-prepend {
  .el-input {
    width: 160px;
  }
}

.input-with-select {
  .el-input-group__prepend {
    background-color: #fff;
  }

  .el-input__inner {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
  }

  .el-input-group__append {
    background-color: #fff;
    border: 0;
  }
}

.input-right {
  .el-input {
    width: 160px;
  }

  .el-input__inner {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
    border-right: 1px solid #dcdfe6;
  }

  .el-input-group__append {
    background-color: #fff;
    border: 0;
  }

  .el-input-group__prepend {
    background-color: #fff;
    border: 0;
    padding: 0;

    .el-input__inner {
      border-right: 0;
      border-radius: 4px 0 0 4px !important;
    }
  }
}

.el-table {
  background: none;

  .el-table__row {
    background: none;

    &:hover {
      td {
        border-top: 1px solid #1c8bf7 !important;
        border-bottom: 1px solid #1c8bf7 !important;
        background-color: rgba(162, 202, 255, 0.33) !important;

        .el-table-column--selection {
          margin-top: 1px;
        }
      }
    }
  }

  .el-table__header {
    .cell {
      margin: 15px 0;
    }
  }
}

.el-table td,
.el-table th.is-leaf {
  border-bottom: 1px solid #dcdfe6;
  border-top: 1px solid transparent;
}

.label-value {
  color: #606266;
  font-size: 14px;
}

.list-row .row-title {
  color: #303133 !important;
  font-weight: 400 !important;
  font-size: 20px !important;
  margin: 5px 0 !important;
}

.detail-layout--header-meta {
  color: #909399 !important;

  div {
    color: #909399 !important;
  }
}

.list-layout {
  .el-table .cell {
    margin: 12px 0;
  }

  .el-table td,
  .el-table th.is-leaf {
    border-bottom: 1px solid #dcdfe6;
  }

  .el-table td.el-table-column--selection .cell {
    padding: 0;
  }

  .el-table td,
  .el-table th {
    padding: 0;
  }
}

.list-wrapper-layout {
  .el-table .cell {
    margin: 0;
    line-height: 47px;
  }

  .el-table tbody .cell {
    margin: 0;
    line-height: 52px;
  }

  .el-table td,
  .el-table th.is-leaf {
    border-bottom: 1px solid #dcdfe6;
  }

  .el-table td,
  .el-table th {
    padding: 0;
  }
}

.ip-locale {
  color: #888888;
  margin-left: 5px;

  &:hover {
    color: #000000;
  }

  &:before {
    content: '[';
  }

  &:after {
    content: ']';
  }
}

// 将sticky 下的 table footer 靠到底部

.sticky-container {
  .el-table-wrapper-footer {
    position: sticky !important;
    bottom: 0 !important;
  }
}

.full-height {
  height: 100%;
}

.full-width {
  width: 100%;
}

.overflow-auto {
  overflow: auto;
  .full-height;
}

.border-box {
  box-sizing: border-box;
}

.search-conditions {
  //background-color: #fbfbfb;
  //border-top: 1px solid #dddddd;
  margin-left: -10px;
  margin-right: -10px;
  padding: 10px 10px 0 10px;
  font-size: 12px;
}

.search-result-item {
  border: 1px solid #a8d1ff;
  color: #1f94f4;
  background-color: #e8f2fe;
  display: inline-block;
  border-radius: 4px;
  padding: 0 5px;
  margin: 0 5px;
  cursor: pointer;

  .el-icon-close {
    margin-left: 5px;
    cursor: pointer;

    &:hover {
      color: #dd4a68;
    }
  }
}

.search-result-count {
  margin: 10px;

  > span {
    color: #4890f4;
    margin: 0 2px;
  }
}

.search-result-clear {
  margin: 10px;
  cursor: pointer;

  &:hover {
    color: #dd4a68;
  }
}

.warn-sub {
  display: grid;
  grid-template-columns: 120px auto;
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea;

  .sub-title {
    font-size: 14px;
  }

  .sub-icon {
    display: inline-block;
    margin-right: 5px;
    vertical-align: 2px;
  }

  .sub-title-content {
    display: inline-block;
    font-weight: bold;
  }

  .sub-title + div,
  .label-value {
    font-size: 12px;
    display: block;
    padding: 3px 0 5px 0;
  }

  .label-value--label {
    color: #909399;
    width: auto !important;
    margin-right: 5px;
  }

  .label-value--value {
    color: #303133;
    margin: unset !important;
  }
}

.grid-h-2 {
  width: 100%;
  display: grid;
  grid-template-columns: 50% 50%;
}

.grid-v-2 {
  height: 100%;
  display: grid;
  grid-template-rows: 50% 50%;
}

.as-ls {
  .app-info {
    display: none !important;
  }

  #main-layout {
    & > .layout-top,
    & > .layout-left {
      display: none;
    }

    & > .layout-content {
      top: 0 !important;
      left: 0 !important;

      > .page-layout {
        > .layout-content {
          padding-bottom: 0 !important;
        }

        .layout-bottom {
          display: none;
        }
      }
    }
  }
}

.row-meta {
  .label-value--label {
    font-weight: 600;
    color: #303133;
  }
}

// 强制在设置此样式类的元素后分页
.break-after-me {
  page-break-after: always;
  position: relative;
}

.fullscreen {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 32769;
  background: #ffffff;
  overflow: auto;
}

.fullscreen4export {
  .fullscreen;
  pointer-events: none;
}

.date-picker--popper-dialog {
  z-index: 2000;
}

/*改变所有地方级联选择器的样式*/
.el-cascader-panel .el-radio {
  width: 100%;
  height: 100%;
  z-index: 10;
  position: absolute;
  top: 0;
  right: 10px;
}

.el-cascader-node__label {
  width: 157px;
}

.el-cascader-panel .el-radio__input {
  visibility: hidden;
}

.el-cascader-panel .el-cascader-node__postfix {
  top: 10px;
}

//表格斑马色
.tableClass .el-table__body {
  //background-color: lightblue;
  tr:nth-child(2n) {
    background-color: #f6f7fb;
  }

  tr:nth-child(2n-1) {
    background-color: #ffffff;
  }
}

// 修改表头默认颜色为透明
.tableClass .el-table th,
.el-table tr {
  background-color: transparent;
}

// 修改表头颜色
.tableClass .el-table__header-wrapper {
  background-color: #e8ebf0;
}

.tableClass li.number {
  color: black;
  background-color: #f3f6fb;
  margin-left: 5px;
}

.tableClass li.number.active {
  color: white;
  background-color: #2076ff;
  margin-left: 5px;
}

.long-form {
  width: 260px !important;
  .el-input-group__append {
    text-align: center;
  }
}

.tree-top-icon {
  i {
    font-size: 22px;
  }

  .el-button {
    margin-left: 5px;
  }
}

// 报告导出页面标题
.middle-title {
  text-align: center;
  margin-top: 10px;
  font-weight: 600;

  .main-title {
    font-size: 20px;
    margin-top: 10px;
  }

  .sub-title {
    font-size: 16px;
    margin-top: 10px;
  }
}

// 报告导出页面表格样式
.word-table {
  margin-top: 10px;
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;

  tr {
    line-height: 35px;
  }

  td {
    text-align: left;
    padding-left: 20px;
    border: 2px solid rgba(211, 211, 211);
  }
}

// 待编辑的td
.edit-td {
  float: left;
  margin-left: 10px;
}

.dialog-modal {
  .el-form {
    margin: 20px auto;

    .el-select {
      width: 100%;
    }
  }
}

.table-operation {
  display: flex;

  .operation-left {
    flex: 1;
    display: flex;
    margin-left: 20px;

    h2.title {
      font-size: 18px;
      margin: 0 10px 0 0;
      padding: 0;
    }
  }

  a.router-link {
    padding: 7px 15px;
    text-decoration: none;
  }
}

.top_title {
  line-height: 48px;
  padding: 0 10px;
  font-weight: bold;
}

.row-chart {
  display: flex;
  height: auto;
  padding: 15px;

  .card-two {
    background-color: #11cdef !important;
  }

  .card-three {
    background-color: #f7b824 !important;
  }

  .col-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    box-sizing: border-box;
    color: #fff;
    min-width: 200px;
    width: 300px;
    margin-right: 15px;
    height: 100px;
    background-color: #25d489;
    border-radius: 5px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &:hover .card-right {
      transform: rotate(360deg);
    }

    .card-left {
      p {
        margin: 0;
        margin-bottom: 8px;
      }

      h4 {
        margin: 0;
        font-size: 26px;
        font-weight: bold;
      }
    }

    .card-right {
      transition: all 0.3s ease-in-out;
      -webkit-transition: all 0.3s ease-in-out;
      width: 60px;
      height: 60px;
      font-size: 28px;
      border: 2px solid #fff;
      border-radius: 50%;
      text-align: center;
      line-height: 60px;
    }
  }
}

.state_content {
  padding: 15px 15px 0 15px;
  box-sizing: border-box;

  .radio_toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
  }

  .seprate_two {
    grid-template-columns: 1fr 1fr;
  }

  .seprate_three {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .state_box {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    column-gap: 15px;
    margin-bottom: 15px;

    .state_item {
      border: 1px solid #ebebeb;
      box-shadow: 0 2px 6px 0 rgba(192, 192, 192, 0.5);

      .item_title {
        padding: 10px;
        border-bottom: 1px solid #efefef;
      }

      .item_content {
        min-height: 300px;
        padding: 10px;
        box-sizing: border-box;
      }

      .box_two {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }
    }
  }
}

.no-data {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}
